# 石头剪刀布
# 1.先让电脑输个数
import random
computer = random.randint(1,3)

print(f'computer = {computer}')

# 2.提示用户，并输入用户的数
jack = int(input('请输入你的数（1：石头 2：剪刀 3：布）'))

#判断   (and的优先级高于or)
if jack == 1 and computer == 2 or jack == 2 and computer == 3 or jack == 3 and computer ==1:
    print('我赢了')
elif jack == computer:
    print('平局')
else:
    print('我输了')